package cn.pzaily.orange.producer.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PackageName: cn.pzaily.orange.producer.controller
 * @Description:
 * @Author: Pang
 * @Date: 2021-05-20 14:05
 */
@RefreshScope
@RestController
public class ConfigController {

    @Value("${hello}")
    private String hello;

    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    public String hello() {
        return this.hello;
    }

}
